package com.lyc.day1107.demo02;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/11/7 21:28
 * @description：
 * @modified By：
 * @version:
 */
public class Singleton {
    private Singleton(){}

    private static Singleton singleton=new Singleton();

    static Singleton getInstance(){
        return singleton;
    }
    private void show(){
        System.out.println("-------------show方法--------------");
    }
}